package com.nightsoul.springboottest2;

import org.apache.catalina.filters.RemoteIpFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class WebConfiguration {

	@Bean
	/**
	 * 方法名称作为Bean名称
	 * @return
	 */
	public RemoteIpFilter createRemoteIpFilter() {
		return new RemoteIpFilter();
	}


}
